package File;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class MyFile1 {
    //字节流读取文件
    public static void main(String[] args) {
        try(InputStream inputStream = new FileInputStream("D:\\software\\code\\2023_java\\2023_java_code\\code_24_4_17\\src\\Text.text")){

            int n = 0;
            while (( n = inputStream.read()) != -1){
                System.out.println(n);

            }
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
